package com.ruoyi.subsidy.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.subsidy.domain.bo.SysSubsidyPlantingBo;

import java.util.Collection;
import java.util.List;

/**
 * 补贴申请Service接口
 *
 * @author nbacheng
 * @date 2025-08-07
 */
public interface ISysSubsidyPlantingService {

    /**
     * 查询补贴申请
     */
    SysSubsidyPlantingBo queryById(Long id);

    SysSubsidyPlantingBo queryByPlantingBo(SysSubsidyPlantingBo bo);

    List<String> queryDadouType(SysSubsidyPlantingBo bo);

    /**
     * 查询补贴申请列表
     */
    TableDataInfo<SysSubsidyPlantingBo> queryPageList(SysSubsidyPlantingBo bo, PageQuery pageQuery);

    /**
     * 查询补贴申请列表
     */
    List<SysSubsidyPlantingBo> queryList(SysSubsidyPlantingBo bo);

   List<SysSubsidyPlantingBo> queryListChage(SysSubsidyPlantingBo bo);


    List<SysSubsidyPlantingBo> getAmountGroupCun(SysSubsidyPlantingBo bo);

    List<SysSubsidyPlantingBo> getAmountGroupXi(SysSubsidyPlantingBo bo);
    /**
     * 新增补贴申请
     */
    String insertByBo(SysSubsidyPlantingBo bo);

    /**
     * 修改补贴申请
     */
    Boolean updateByBo(SysSubsidyPlantingBo bo);


    Boolean updateByPlanBo(SysSubsidyPlantingBo bo);

    Boolean updateByPlanBoBohui(SysSubsidyPlantingBo bo);


    Boolean updateByPlanBoOne(SysSubsidyPlantingBo bo);

    /**
     * 校验并批量删除补贴申请信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
